<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="g" uri="http://geni-max.com/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<meta http-equiv="Cache-Control" content="no-cache" />
		<meta http-equiv="Expires" content="0" />
		<title>卓越网络管理系统</title>
		<link rel="stylesheet" type="text/css" href="../css/public.css" />
		<script type="text/javascript" src="../js/Form.js"></script>
		<script type="text/javascript" src="../js/Calendar.js"></script>
	</head>
	<body onload="initValidateForm(document.getElementById('tform'));">
		<table class="tab">
			<jsp:include page="base_info_gcblx.jsp" />
			<jsp:include page="base_info_kgsq.jsp" />
			<jsp:include page="base_info_kgpf.jsp" />
			<jsp:include page="base_info2.jsp" />
		</table>
		<form id="tform" onsubmit="return checkForm()" method="post" action="roomProject!process.action" style="margin-top:1px;">
			<input type="hidden" name="id" value="${roomProject.id}" />
			<input type="hidden" name="taskId" value="${taskId}" />
			<table class="tab">
				<tr>
					<td colspan="8">填写传输开工申请表</td>
				</tr>
				<!--  
				<tr>
					<td class="label" width="12%">项目名称：</td>
					<td colspan="3"><input size="50" maxlength="64" name="roomProject.transferProjectName" value="${roomProject.transferProjectName}" /></td>
					<td class="label" width="12%">项目编号：</td>
					<td width="12%"><input size="10" maxlength="64" name="roomProject.transferProjectNumber" value="${roomProject.transferProjectNumber}" /></td>
					<td class="label" width="12%">MIS任务号：</td>
					<td width="12%"><input size="10" maxlength="64" name="roomProject.transferMisNumber" value="${roomProject.transferMisNumber}" /></td>
				</tr>
				-->
				<tr>
					<td class="label">项目归属：</td>
					<td width="16%"><input size="10" maxlength="64" name="roomProject.transferProjectBelong" value="${roomProject.transferProjectBelong}" id="itembelong" /></td>
					<td class="label" width="12%">建设内容：</td>
					<td width="12%"><input size="10" maxlength="64" name="roomProject.transferBuildScale" value="${roomProject.transferBuildScale}" id="buildscale" /></td>
					<td class="label">施工费用预算(含乙供材料)：</td>
					<td><input size="10" maxlength="64" name="roomProject.transferBudget" value="${roomProject.transferBudget}" dataType="float" id="budget" /></td>
					<td class="label">主要甲供材料名称：</td>
					<td><input size="10" maxlength="64" name="roomProject.transferOwnerMaterial" value="${roomProject.transferOwnerMaterial}" id="material"/></td>
				</tr>
				<tr>
					<td class="label">所有甲供材料费用：</td>
					<td><input size="10" maxlength="64" name="roomProject.allTransferMaterialCost" value="${roomProject.allTransferMaterialCost}"/></td>
					<td class="label">设计人员：</td>
					<td><input size="10" maxlength="64" name="roomProject.transferDesigner" value="${roomProject.transferDesigner}" id="designer"/></td>
					<td class="label">施工单位：</td>
					<td><input size="10" maxlength="64" name="roomProject.transferConstructionUnit" value="${roomProject.transferConstructionUnit}" id="buildunit"/></td>
					<td class="label">监理单位：</td>
					<td colspan="3"><input size="10" maxlength="64" name="roomProject.transferSupervisorUnit" value="${roomProject.transferSupervisorUnit}" id="supervisorunit"/></td>
				</tr>
				<tr>
					<td class="label">开工日期：</td>
					<td><input size="10" maxlength="64" readonly="readonly" style="cursor:text;" onclick="showDateGrid(this)" name="roomProject.transferStartDate" value="<fmt:formatDate pattern="yyyy-MM-dd" value="${roomProject.transferStartDate}" type="both" />" id="startdate" /></td>
					<td class="label">预计竣工日期：</td>
					<td><input size="10" maxlength="64" readonly="readonly" style="cursor:text;" onclick="showDateGrid(this)" name="roomProject.transferPlanCompleteDate" value="<fmt:formatDate pattern="yyyy-MM-dd" value="${roomProject.transferPlanCompleteDate}" type="both" />" id="completedate" /></td>
					<td class="label">开工申请日期：</td>
					<td colspan="3"><INPUT size="10" maxlength="64" readonly="readonly" style="cursor:text;" onclick="showDateGrid(this)" name="roomProject.transferStartApplyDate" value="<fmt:formatDate pattern="yyyy-MM-dd" value="${roomProject.transferStartApplyDate}" type="both" />" id="applydate" /></td>
				</tr>
				<tr>
					<td class="label">备注：</td>
					<td colspan="7">
						<textarea rows="3" name="roomProject.transferRemark">${roomProject.transferRemark}</textarea>
					</td>
				</tr>
				<tr>
					<td class="label">操作说明：</td>
					<td colspan="7">
						<textarea rows="3" name="operateRemark"></textarea>
					</td>
				</tr>
				<tr>
					<td colspan="8" class="tcenter">
						<input type="hidden" id="actionName" name="actionName" value="提交" />
						<button type="submit" onclick="document.getElementById('actionName').value = '提交'">提交</button>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
<script language="javascript">
  function checkForm(){
	 	var itembelong = document.getElementById('itembelong').value;
		var buildscale = document.getElementById('buildscale').value;
		var budget = document.getElementById('budget').value;
		var material = document.getElementById('material').value;
		var designer = document.getElementById('designer').value;
		var buildunit = document.getElementById('buildunit').value;
		var supervisorunit = document.getElementById('supervisorunit').value;
		var startdate = document.getElementById('startdate').value;
		var completedate = document.getElementById('completedate').value;
		var applydate = document.getElementById('applydate').value;
		if(itembelong == null || itembelong ==''){
			alert("项目归属不可以为空");
			document.getElementById('itembelong').focus();
			return false;
		}
		if(buildscale == null || buildscale ==''){
			alert("建设内容不可以为空");
			document.getElementById('buildscale').focus();
			return false;
		}
		if(budget == null || budget ==''){
			alert("费用预算不可以为空");
			document.getElementById('budget').focus();
			return false;
		}
		if(material == null || material ==''){
			alert("甲供材料不可以为空");
			document.getElementById('material').focus();
			return false;
		}
		if(designer == null || designer ==''){
			alert("设计人员不可以为空");
			document.getElementById('designer').focus();
			return false;
		}
		if(buildunit == null || buildunit ==''){
			alert("施工单位不可以为空");
			document.getElementById('buildunit').focus();
			return false;
		}
		if(supervisorunit == null || supervisorunit ==''){
			alert("监理单位不可以为空");
			document.getElementById('supervisorunit').focus();
			return false;
		}
		if(startdate == null || startdate ==''){
			alert("开工日期不可以为空");
			document.getElementById('startdate').focus();
			return false;
		}
		if(completedate == null || completedate ==''){
			alert("预计竣工日期不可以为空");
			document.getElementById('completedate').focus();
			return false;
		}
		if(applydate == null || applydate ==''){
			alert("开工申请日期不可以为空");
			document.getElementById('applydate').focus();
			return false;
		}
		return true;
  }
</script>
